/*
 * @Description: 名单分配首页接口
 * @Author: lixianggang
 * @Date: 2022-12-08 10:09:54
 * @LastEditors: lixianggang
 * @LastEditTime: 2022-12-09 15:34:40
 */
import request from "@/utils/request";

// 名单分配首页获取数据
export function getStaticsticalData(data) {
  return request({
    url: "/admin/wecom/customer/statistic",
    method: "post",
    data,
  });
}

// 客户渠道分布总览饼图
export function getCusChannelData(data) {
  return request({
    url: "/admin/wecom/customer/cusChannel",
    method: "post",
    data,
  });
}

// 跟进方式分布总览饼图
export function getFollowWayData(data) {
  return request({
    url: "/admin/wecom/customer/followWay",
    method: "post",
    data,
  });
}

// 新增客户月趋势-领导
export function getCusAddMonthData(data) {
  return request({
    url: "/admin/wecom/customer/cusAddMonth",
    method: "post",
    data,
  });
}

// 获客排名
export function getCusSourceData(data) {
  return request({
    url: "/admin/wecom/customer/customerSource",
    method: "post",
    data,
  });
}

// 新增客户月趋势-各渠道
export function getCusAddInsMonthData(data) {
  return request({
    url: "/admin/wecom/customer/cusAddInsMonth",
    method: "post",
    data,
  });
}

// 团队获客转化排名（TOP6）-各渠道
export function getTeamCustomerSourceData(data) {
  return request({
    url: "/admin/wecom/customer/teamCustomerSource",
    method: "post",
    data,
  });
}
